﻿using Cxuu.Service;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace Cxuu.Web.Home
{
    [Area("Home")]
    public class ExtMemberController : Base
    {
        private readonly ExtMemberService _extMember;

        public ExtMemberController(ExtMemberService extMember)
        {
            _extMember = extMember;
        }

        /// <summary>
        /// 全部成员列表 不分页  自动缓存
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<IActionResult> IndexAsync()
        {
            //List<ExtMember> extMembers = await _extMember.GetAllAsync();
            //ViewBag.ExtMembers = extMembers;
            return View(await _extMember.GetAllAsync());
        }


    }
}
